﻿using AyaWo.Commen;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AyaWo.WinFrom
{
    public partial class pathForm : Form
    {
        string _name = null;
        public pathForm(string name)
        {
            InitializeComponent();
            _name = name;
            try
            {
                var tty = DatHelper<string>.GetDatStr(_name + "_Time.dat");
                textBox1.Text = tty;
            }
            catch { }

        }

        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                DatHelper<int>.SaveDat(_name+"_Time.dat", textBox1.Text);
                MessageBox.Show("保存成功...");
            }
            catch
            {
                MessageBox.Show("保存失败...");
            }
        }
    }
}
